﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MatrixManagement
{
    /// <summary>
    /// 识别大屏界面
    /// </summary>
    public partial class frm_IdentificationWall : Form
    {
        #region 属性

        /// <summary>
        /// 大屏序号
        /// </summary>
        public string WallNo
        {
            get
            {
                return lbWallNo.Text;
            }
            set
            {
                if (lbWallNo.Text.Equals(value)) return;
                lbWallNo.Text = value;
            }
        }

        #endregion

        #region 构造函数

        public frm_IdentificationWall()
        {
            InitializeComponent();

            #region Timer
            Timer timer = new Timer(); // 计时器
            timer.Interval = 3000; // 单位：毫秒
            timer.Tick += (s, e) =>
            {
                btnClose.PerformClick();
                timer.Stop();
            };
            timer.Start();
            #endregion
        }

        #endregion

        #region 事件

        /// <summary>
        /// 关闭窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        #endregion
    }
}
